# $Id$
# Maintainer: Ronald van Haren <ronald.archlinux.org>
# Contributor: damir <damir.archlinux.org>

pkgname=muparser
pkgver=2.2.5
pkgrel=2
pkgdesc="A fast math parser library"
arch=('i686' 'x86_64')
url="http://muparser.sourceforge.net/"
depends=('gcc-libs')
license=('custom')
options=('!makeflags')
source=("${pkgname}-${pkgver}.zip::https://github.com/beltoforion/muparser/archive/v$pkgver.tar.gz")
sha1sums=('d86946f8bc5f5d74063313a00c16798a418e308b')

build() {
  cd $srcdir/${pkgname}-${pkgver}
  sh ./configure --prefix=/usr
  make
}

package() {
  cd $srcdir/${pkgname}-${pkgver}
  make DESTDIR=$pkgdir install

  # license
  install -D -m644 License.txt \
	$pkgdir/usr/share/licenses/${pkgname}/LICENSE
}
